.class public Lcom/ninesky/browser/view/UrlBar;
.super Landroid/widget/LinearLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/view/View$OnTouchListener;


# static fields
.field private static a:I

.field private static b:I

.field private static c:I

.field private static d:I

.field private static e:I


# instance fields
.field private f:I

.field private g:Landroid/widget/ImageButton;

.field private h:Landroid/widget/ImageButton;

.field private i:Landroid/widget/Button;

.field private j:Landroid/widget/Button;

.field private k:Landroid/widget/Button;

.field private l:Landroid/widget/Button;

.field private m:Landroid/widget/RelativeLayout;

.field private n:Lcom/ninesky/browser/view/UrlAutoComplete;

.field private o:Lcom/ninesky/browser/view/UrlAutoComplete;

.field private p:Landroid/graphics/drawable/Drawable;

.field private q:Ljava/lang/String;

.field private r:Ljava/lang/String;

.field private s:Z

.field private t:Landroid/os/Handler;

.field private u:Lcom/ninesky/browser/BrowserActivity;

.field private v:Landroid/text/TextWatcher;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 9

    const/4 v4, 0x0

    const/4 v8, 0x1

    const/4 v7, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v1, -0x1

    iput v1, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    iput-boolean v7, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    new-instance v1, Landroid/os/Handler;

    invoke-direct {v1}, Landroid/os/Handler;-><init>()V

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->t:Landroid/os/Handler;

    new-instance v1, Lcom/ninesky/browser/view/ai;

    invoke-direct {v1, p0}, Lcom/ninesky/browser/view/ai;-><init>(Lcom/ninesky/browser/view/UrlBar;)V

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->v:Landroid/text/TextWatcher;

    move-object v0, p1

    check-cast v0, Lcom/ninesky/browser/BrowserActivity;

    move-object v1, v0

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f02009e

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->p:Landroid/graphics/drawable/Drawable;

    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f03002e

    invoke-virtual {v1, v2, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v1, 0x7f0c009e

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->m:Landroid/widget/RelativeLayout;

    const v1, 0x7f0c00a0

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageButton;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    const v1, 0x7f0c00a1

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageButton;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    const v1, 0x7f0c00a2

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    const v1, 0x7f0c00a3

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    const v1, 0x7f0c009f

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/ninesky/browser/view/UrlAutoComplete;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, v7}, Lcom/ninesky/browser/view/UrlAutoComplete;->setThreshold(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const/high16 v2, 0x4230

    invoke-static {v1, v2}, Lcom/ninesky/a/c;->a(Landroid/content/Context;F)I

    move-result v1

    sput v1, Lcom/ninesky/browser/view/UrlBar;->a:I

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->getPaddingRight()I

    move-result v1

    sput v1, Lcom/ninesky/browser/view/UrlBar;->b:I

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->getPaddingLeft()I

    move-result v1

    sput v1, Lcom/ninesky/browser/view/UrlBar;->c:I

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->getPaddingTop()I

    move-result v1

    sput v1, Lcom/ninesky/browser/view/UrlBar;->d:I

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->getPaddingBottom()I

    move-result v1

    sput v1, Lcom/ninesky/browser/view/UrlBar;->e:I

    const v1, 0x7f0c00a4

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/ninesky/browser/view/UrlAutoComplete;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, v7}, Lcom/ninesky/browser/view/UrlAutoComplete;->setThreshold(I)V

    const v1, 0x7f0c00a5

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    const v1, 0x7f0c00a6

    invoke-virtual {p0, v1}, Lcom/ninesky/browser/view/UrlBar;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v1, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v1, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    invoke-virtual {v1, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, p0}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    invoke-direct {p0, v8}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    const/4 v1, 0x5

    new-array v3, v1, [Ljava/lang/String;

    const-string v1, "_id"

    aput-object v1, v3, v7

    const-string v1, "url"

    aput-object v1, v3, v8

    const/4 v1, 0x2

    const-string v2, "title"

    aput-object v2, v3, v1

    const/4 v1, 0x3

    const-string v2, "bookmark"

    aput-object v2, v3, v1

    const/4 v1, 0x4

    const-string v2, "user_entered"

    aput-object v2, v3, v1

    const-string v1, "content://ninesky.browser/bookmarks/search_suggest_query"

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    move-object v5, v4

    move-object v6, v4

    invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    new-instance v2, Lcom/ninesky/browser/view/g;

    iget-object v3, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v2, v3, v1}, Lcom/ninesky/browser/view/g;-><init>(Lcom/ninesky/browser/BrowserActivity;Landroid/database/Cursor;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/UrlAutoComplete;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    new-instance v3, Lcom/ninesky/browser/view/ag;

    invoke-direct {v3, p0}, Lcom/ninesky/browser/view/ag;-><init>(Lcom/ninesky/browser/view/UrlBar;)V

    invoke-virtual {v1, v3}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    new-instance v3, Lcom/ninesky/browser/view/am;

    invoke-direct {v3, p0, v2}, Lcom/ninesky/browser/view/am;-><init>(Lcom/ninesky/browser/view/UrlBar;Lcom/ninesky/browser/view/g;)V

    invoke-virtual {v1, v3}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "search"

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " not like ? "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    new-array v5, v8, [Ljava/lang/String;

    const-string v1, "\' \'%"

    aput-object v1, v5, v7

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    sget-object v2, Lcom/ninesky/browser/provider/e;->c:Landroid/net/Uri;

    sget-object v3, Lcom/ninesky/browser/provider/e;->d:[Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const-string v6, "date DESC "

    invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    new-instance v2, Lcom/ninesky/browser/view/bj;

    iget-object v3, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v2, v3, v1}, Lcom/ninesky/browser/view/bj;-><init>(Lcom/ninesky/browser/BrowserActivity;Landroid/database/Cursor;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/UrlAutoComplete;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    new-instance v3, Lcom/ninesky/browser/view/ak;

    invoke-direct {v3, p0}, Lcom/ninesky/browser/view/ak;-><init>(Lcom/ninesky/browser/view/UrlBar;)V

    invoke-virtual {v1, v3}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    new-instance v3, Lcom/ninesky/browser/view/aq;

    invoke-direct {v3, p0, v2}, Lcom/ninesky/browser/view/aq;-><init>(Lcom/ninesky/browser/view/UrlBar;Lcom/ninesky/browser/view/bj;)V

    invoke-virtual {v1, v3}, Lcom/ninesky/browser/view/UrlAutoComplete;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v2, p0, Lcom/ninesky/browser/view/UrlBar;->v:Landroid/text/TextWatcher;

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/UrlAutoComplete;->addTextChangedListener(Landroid/text/TextWatcher;)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v2, p0, Lcom/ninesky/browser/view/UrlBar;->v:Landroid/text/TextWatcher;

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/view/UrlAutoComplete;->addTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method

.method static synthetic a(Lcom/ninesky/browser/view/UrlBar;)I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    return v0
.end method

.method private a(I)V
    .locals 9

    const/4 v2, 0x3

    const/4 v8, 0x1

    const/4 v7, 0x0

    const/4 v6, 0x0

    const/16 v5, 0x8

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    if-eq v0, p1, :cond_a

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    if-ne v0, v2, :cond_2

    invoke-direct {p0}, Lcom/ninesky/browser/view/UrlBar;->i()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->dismissDropDown()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->clearFocus()V

    :cond_0
    :goto_0
    if-ne p1, v2, :cond_3

    sput-boolean v8, Lcom/ninesky/browser/view/g;->a:Z

    :goto_1
    const/4 v0, 0x4

    if-ne p1, v0, :cond_4

    sput-boolean v8, Lcom/ninesky/browser/view/bj;->a:Z

    :goto_2
    iput p1, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    packed-switch v0, :pswitch_data_0

    :cond_1
    :goto_3
    return-void

    :cond_2
    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    invoke-direct {p0}, Lcom/ninesky/browser/view/UrlBar;->i()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->dismissDropDown()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->clearFocus()V

    goto :goto_0

    :cond_3
    sput-boolean v6, Lcom/ninesky/browser/view/g;->a:Z

    goto :goto_1

    :cond_4
    sput-boolean v6, Lcom/ninesky/browser/view/bj;->a:Z

    goto :goto_2

    :pswitch_0
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->p:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v1, v7, v7, v7}, Lcom/ninesky/browser/view/UrlAutoComplete;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelected(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    sget v1, Lcom/ninesky/browser/view/UrlBar;->c:I

    sget v2, Lcom/ninesky/browser/view/UrlBar;->d:I

    sget v3, Lcom/ninesky/browser/view/UrlBar;->b:I

    sget v4, Lcom/ninesky/browser/view/UrlBar;->e:I

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/ninesky/browser/view/UrlAutoComplete;->setPadding(IIII)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelected(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-static {}, Lcom/ninesky/browser/view/br;->b()Lcom/ninesky/browser/view/br;

    move-result-object v1

    if-eqz v0, :cond_5

    if-eqz v1, :cond_5

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->g()I

    move-result v0

    iget-object v2, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const v3, 0x7f07005f

    invoke-virtual {v2, v3}, Lcom/ninesky/browser/BrowserActivity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Lcom/ninesky/browser/view/br;->a(ILjava/lang/String;)V

    :cond_5
    invoke-static {}, Lcom/ninesky/browser/view/c;->e()Lcom/ninesky/browser/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/view/c;->b()V

    goto/16 :goto_3

    :pswitch_1
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->r:Ljava/lang/String;

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->r:Ljava/lang/String;

    const-string v1, ""

    if-eq v0, v1, :cond_7

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->r:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    :goto_4
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    sget v1, Lcom/ninesky/browser/view/UrlBar;->c:I

    sget v2, Lcom/ninesky/browser/view/UrlBar;->d:I

    sget v3, Lcom/ninesky/browser/view/UrlBar;->a:I

    sget v4, Lcom/ninesky/browser/view/UrlBar;->e:I

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/ninesky/browser/view/UrlAutoComplete;->setPadding(IIII)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelected(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->clearFocus()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v7, v7, v7, v7}, Lcom/ninesky/browser/view/UrlAutoComplete;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    const-string v1, ""

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelected(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->clearFocus()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->c()I

    move-result v0

    if-eqz v0, :cond_6

    const/16 v1, 0x64

    if-lt v0, v1, :cond_8

    :cond_6
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v6}, Landroid/widget/ImageButton;->setVisibility(I)V

    goto/16 :goto_3

    :cond_7
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    goto :goto_4

    :cond_8
    if-gez v0, :cond_9

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    goto/16 :goto_3

    :cond_9
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v6}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    goto/16 :goto_3

    :pswitch_2
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v6}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v8}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelectAllOnFocus(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    sget v1, Lcom/ninesky/browser/view/UrlBar;->c:I

    sget v2, Lcom/ninesky/browser/view/UrlBar;->d:I

    sget v3, Lcom/ninesky/browser/view/UrlBar;->b:I

    sget v4, Lcom/ninesky/browser/view/UrlBar;->e:I

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/ninesky/browser/view/UrlAutoComplete;->setPadding(IIII)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v8}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelected(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v7, v7, v7, v7}, Lcom/ninesky/browser/view/UrlAutoComplete;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v5}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v5}, Lcom/ninesky/browser/view/UrlAutoComplete;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iput-boolean v8, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    goto/16 :goto_3

    :pswitch_3
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->m:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/view/UrlAutoComplete;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->showDropDown()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v8}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelected(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, v8}, Lcom/ninesky/browser/view/UrlAutoComplete;->setSelectAllOnFocus(Z)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    invoke-virtual {v0, v6}, Landroid/widget/Button;->setVisibility(I)V

    iput-boolean v8, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    goto/16 :goto_3

    :cond_a
    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    if-ne v2, v0, :cond_b

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->showDropDown()V

    goto/16 :goto_3

    :cond_b
    const/4 v0, 0x4

    iget v1, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->showDropDown()V

    goto/16 :goto_3

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method static synthetic b(Lcom/ninesky/browser/view/UrlBar;)Lcom/ninesky/browser/view/UrlAutoComplete;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    return-object v0
.end method

.method static synthetic c(Lcom/ninesky/browser/view/UrlBar;)V
    .locals 0

    invoke-direct {p0}, Lcom/ninesky/browser/view/UrlBar;->j()V

    return-void
.end method

.method static synthetic d(Lcom/ninesky/browser/view/UrlBar;)Lcom/ninesky/browser/view/UrlAutoComplete;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    return-object v0
.end method

.method private i()V
    .locals 3

    const/4 v2, 0x0

    iget-boolean v0, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "input_method"

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/UrlBar;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    :cond_0
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->u()V

    :cond_1
    iput-boolean v2, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    return-void
.end method

.method private j()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    return-void
.end method


# virtual methods
.method public final a()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    return-object v0
.end method

.method public final a(ILjava/lang/String;Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    invoke-virtual {p0, p2, p3}, Lcom/ninesky/browser/view/UrlBar;->a(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public final a(Ljava/lang/String;)V
    .locals 3

    const/4 v1, -0x1

    if-eqz p1, :cond_4

    const-string v0, "harm"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const v0, 0x7f020098

    :goto_0
    if-eq v0, v1, :cond_0

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v1}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-static {v1, v0}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v0

    new-instance v1, Landroid/graphics/drawable/BitmapDrawable;

    iget-object v2, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v2}, Lcom/ninesky/browser/BrowserActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->t:Landroid/os/Handler;

    new-instance v2, Lcom/ninesky/browser/view/ao;

    invoke-direct {v2, p0, p1, v1}, Lcom/ninesky/browser/view/ao;-><init>(Lcom/ninesky/browser/view/UrlBar;Ljava/lang/String;Landroid/graphics/drawable/BitmapDrawable;)V

    invoke-virtual {v0, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    :cond_0
    return-void

    :cond_1
    const-string v0, "certified"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const v0, 0x7f020095

    goto :goto_0

    :cond_2
    const-string v0, "https_secure"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    const v0, 0x7f02002b

    goto :goto_0

    :cond_3
    const-string v0, "https_patial_secure"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    const v0, 0x7f020026

    goto :goto_0

    :cond_4
    move v0, v1

    goto :goto_0
.end method

.method public final a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    iput-object p1, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    iput-object p2, p0, Lcom/ninesky/browser/view/UrlBar;->r:Ljava/lang/String;

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0, p2}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method public final b()V
    .locals 2

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v1

    if-eqz v1, :cond_2

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    const-string v0, ""

    iput-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->r:Ljava/lang/String;

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    goto :goto_0

    :cond_2
    invoke-virtual {v0}, Lcom/ninesky/browser/n;->e()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->q()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->r:Ljava/lang/String;

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->i()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    goto :goto_0
.end method

.method public final b(ILjava/lang/String;Ljava/lang/String;)V
    .locals 2

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    invoke-virtual {p0, p2, p3}, Lcom/ninesky/browser/view/UrlBar;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method protected final c()V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lcom/ninesky/a/e;->a:Ljava/util/regex/Pattern;

    invoke-virtual {v1, v0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/regex/Matcher;->matches()Z

    move-result v0

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->j:Landroid/widget/Button;

    if-eqz v0, :cond_1

    move v2, v3

    :goto_0
    invoke-virtual {v1, v2}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->i:Landroid/widget/Button;

    if-eqz v0, :cond_2

    move v0, v4

    :goto_1
    invoke-virtual {v1, v0}, Landroid/widget/Button;->setVisibility(I)V

    :cond_0
    return-void

    :cond_1
    move v2, v4

    goto :goto_0

    :cond_2
    move v0, v3

    goto :goto_1
.end method

.method public clearFocus()V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->isFocused()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->clearFocus()V

    :cond_0
    :goto_0
    invoke-super {p0}, Landroid/widget/LinearLayout;->clearFocus()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->isFocused()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->clearFocus()V

    goto :goto_0
.end method

.method protected final d()V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    const-string v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x1

    :goto_0
    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->k:Landroid/widget/Button;

    if-eqz v0, :cond_2

    move v2, v3

    :goto_1
    invoke-virtual {v1, v2}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->l:Landroid/widget/Button;

    if-eqz v0, :cond_3

    move v0, v4

    :goto_2
    invoke-virtual {v1, v0}, Landroid/widget/Button;->setVisibility(I)V

    :cond_0
    return-void

    :cond_1
    move v0, v3

    goto :goto_0

    :cond_2
    move v2, v4

    goto :goto_1

    :cond_3
    move v0, v3

    goto :goto_2
.end method

.method public final e()V
    .locals 1

    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->f()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x2

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    goto :goto_0
.end method

.method public final f()V
    .locals 2

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v1}, Lcom/ninesky/browser/view/UrlAutoComplete;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method public final g()V
    .locals 0

    invoke-virtual {p0}, Lcom/ninesky/browser/view/UrlBar;->b()V

    return-void
.end method

.method public final h()Z
    .locals 2

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    iget v0, p0, Lcom/ninesky/browser/view/UrlBar;->f:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    const/16 v3, 0x8

    const/4 v2, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    const/4 v0, 0x3

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "ClickUrlInput"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_1
    const/4 v0, 0x4

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "ClickSearchInput"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    iget-object v1, p0, Lcom/ninesky/browser/view/UrlBar;->q:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/BrowserActivity;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v3}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "Refresh"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    invoke-static {}, Lcom/ninesky/browser/TabControl;->a()Lcom/ninesky/browser/TabControl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->y()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->h:Landroid/widget/ImageButton;

    invoke-virtual {v0, v3}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->g:Landroid/widget/ImageButton;

    invoke-virtual {v0, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "Stop"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_4
    invoke-virtual {p0}, Lcom/ninesky/browser/view/UrlBar;->e()V

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0c00a2

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "CancelEditUrl"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "CancelSearch"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_5
    invoke-virtual {p0}, Lcom/ninesky/browser/view/UrlBar;->f()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "VisitUrl"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    :pswitch_6
    invoke-direct {p0}, Lcom/ninesky/browser/view/UrlBar;->j()V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->u:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "TitleView"

    const-string v2, "Search"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x7f0c009f
        :pswitch_0
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_1
        :pswitch_6
        :pswitch_4
    .end packed-switch
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 2

    const/4 v1, 0x1

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x3

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->n:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->requestFocus()Z

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_1

    iget-boolean v0, p0, Lcom/ninesky/browser/view/UrlBar;->s:Z

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {p1, v0}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x4

    invoke-direct {p0, v0}, Lcom/ninesky/browser/view/UrlBar;->a(I)V

    iget-object v0, p0, Lcom/ninesky/browser/view/UrlBar;->o:Lcom/ninesky/browser/view/UrlAutoComplete;

    invoke-virtual {v0}, Lcom/ninesky/browser/view/UrlAutoComplete;->requestFocus()Z

    move v0, v1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method
